<?php
use dmstr\widgets\Menu;
echo Menu::widget(
            [
                'options' => ['class' => 'sidebar-menu'],
                'items' => [
                    ['label' => 'Menu', 'options' => ['class' => 'header']],
                    [
                        'label' => Yii::t('app', '项目列表'),
                        'url' => ['/project/index'],
                        'icon' => 'fa  fa-female',
                        'active' => 'project' === Yii::$app->controller->id,
                        //'visible' => \Yii::$app->user->can('activity/index'),
                    ],

                    [
                        'label' => Yii::t('app', '项目类别'),
                        'url' => ['/project-category/index'],
                        'icon' => 'fa  fa-hdd-o',
                        'active' => 'project-category' === Yii::$app->controller->id,
                        //'visible' => \Yii::$app->user->can('label/index'),
                    ],
                ],

            ]
            
        )

?>